<template>
  <div class="exception">
    <img src="@/assets/images/404.jpg" alt="">
    <el-button @click="goHome">回首页</el-button>
  </div>
</template>

<script setup>
import {useRouter} from 'vue-router'

const router = useRouter()
const goHome = () => {
  router.push('/welcome')
}
</script>

<style scoped>
.exception {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.el-button {
  max-width: 100px;
}
</style>
